﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ld.Server.Dto;
using System.ServiceModel;

namespace Ld.Server.Contract
{
    public interface IDuplexCallback
    {
        [OperationContract(IsOneWay = true)]
        void ReceiveProduct(Product entity);

        [OperationContract(IsOneWay = true)]
        void ClearProduct(Guid id);

        [OperationContract(IsOneWay = true)]
        void ReceiveCustomer(Customer entity);

        [OperationContract(IsOneWay = true)]
        void ClearCustomer(Guid id);

        [OperationContract(IsOneWay = true)]
        void ReceiveOrder(Order entity);

        [OperationContract(IsOneWay = true)]
        void ClearOrder(Guid id);
    }
}
